{extend name="public:_base" /}
{block name="css"}
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/uploadify/uploadify.css">
{/block}
{block name="js"}
{include file="public/_validform"}
<script type="text/javascript">
    $("[name='status'][value='{$data.status ?? ''}']").attr("checked", true);
</script>
{/block}
{block name="main"}
<div class="page-container">
    <form class="form form-horizontal" action="{:url(\''.\\think\\Request::instance()->controller().'/save')}" id="form"
          method="post">

        <table class="table table-border table-bordered table-bg table-style">
            <thead>
                <tr>
                    <th colspan="2" scope="col">填写信息</th>
                </tr>
            </thead>

            <tbody>
                <tr>
                    <th>标题：</th>
                    <td>
                        <input type="text" class="input-text" value="{$data.title ?? ''}" placeholder="标题..." name="title">
                    </td>
                </tr>

                <tr>
                    <th>留言信息：</th>
                    <td class="textarea-valid">
                        <textarea name="center" cols="" rows="" class="input-text textarea" placeholder="说点什么..." datatype="*10-100" dragonfly="true" nullmsg="限制10-100个字符!">{$data.center ?? ''}</textarea>
                    </td>
                </tr>

                <tr>
                    <th>昵称：</th>
                    <td>
                        <input type="text" class="input-text" value="{$data.name ?? ''}" placeholder="你的称呼" name="name">
                    </td>
                </tr>

                <tr>
                    <th>公司：</th>
                    <td>
                        <input type="text" class="input-text" value="{$data.company ?? ''}" placeholder="公司名称" name="company">
                    </td>
                </tr>

                <tr>
                    <th>联系电话：</th>
                    <td>
                        <input type="text" class="input-text" value="{$data.tel ?? ''}" placeholder="联系电话" name="tel">
                    </td>
                </tr>

                {notempty name="$data.QQ"}
                <tr>
                    <th>QQ：</th>
                    <td>
                        <input type="text" class="input-text" value="{$data.QQ ?? ''}" placeholder="QQ号码" name="QQ">
                    </td>
                </tr>
                {/notempty}

                <tr>
                    <th>其他联系方式：</th>
                    <td>
                        <input type="text" class="input-text" value="{$data.other??''}" placeholder="其他联系方式" name="other">
                    </td>
                </tr>

                <tr>
                    <th>邮箱：</th>
                    <td>
                        <input type="email" class="input-text" value="{$data.mail ?? ''}" placeholder="电子邮箱" name="mail">
                    </td>
                </tr>

                <tr>
                    <th>审核状态：</th>
                    <td>
                        <div class="radio-box" style="padding-left: 0;">
                            <input type="radio" name="status" id="radio-0" value="1">
                            <label for="radio-0">通过</label>
                        </div>

                        <div class="radio-box">
                            <input type="radio" name="status" id="radio-1" value="0">
                            <label for="radio-1">不通过</label>
                        </div>
                    </td>
                </tr>
            </tbody>

            <tfoot>
                <tr>
                    <th></th>
                    <td>
                        <input name="id" value="{$data.id ?? ''}" type="hidden">
                        {:token()}
                        <input class="btn radius btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
                    </td>
                </tr>
            </tfoot>
        </table>

    </form>
</div>
{/block}
